import baseUrl from './config';
import http from '@/utils/http';
export function login(data) {
  return http({
    url: `${baseUrl.MANAGEMENT}/api/operator/login`,
    method: 'POST',
    data: data
  });
}
export function get_user_info() {
  return http({
    url: `${baseUrl.MANAGEMENT}/api/operator/info`,
    method: 'POST'
  });
}
export function get_user_permission() {
  return http({
    url: `${baseUrl.MANAGEMENT}/api/action/my`,
    method: 'POST'
  });
}

export function get_user_roles() {
  return http({
    url: `${baseUrl.MANAGEMENT}/api/role/my`,
    method: 'POST'
  });
}
